Add single-user database recovery gate - #162
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
python -m core.engine.cli.commands.recovery backup|restorecommandsWhy
ACE v1 needs an honest single-user recovery promise. A persisted Intelligence Builder must reopen after process/database restart, accept later append-only work, and be recoverable into a clean store without conflating runnable recovery with data portability.
A raw generated SurrealDB full-schema export is not replayable for the current ACE schema: historical migrations leave valid runtime indexes that refer to retired
orgfields, and clean import rejects those definitions. This implementation keeps SurrealDB's native serialization for all table records while rebuilding the exact packaged schema version before import.Operator impact and boundaries
ace recoveryregistration is intentionally excluded because PR Package and launch Atrium #156 ownscore/engine/cli/main.py; the packaged module command is supported now and registration can be added after convergenceVerification
mainat0948db68af3f3915132baed35b40549e305a35eaace_core-0.8.2wheel contains both recovery modules; extracted-wheel help exposes bounded backup/restore commandsgit diff --check: passedBroad-gate limitations
The pre-restack broad non-E2E run reached 7897 passed, 50 skipped, 262 deselected and reported two failures:
7142804e2e3479c8fdbbd062614803300fb7fb4e. This is the previously documented linked-worktree limitation, unrelated to recovery.No UI, World, Market, collaboration, release, tag, publication, or top-level CLI-registration change is included.